<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('停止定时器')" />
</head>
<body class="gray-bg">
<form class="form-horizontal" id="form-startTimer">
    <div class="form-group">
        <div class="col-md-12">
                <table bgcolor="828181" class='table table-md table-bordered'>
                    <tr bgcolor="#C6D7EF" align="left">
                        <td align="left" colspan="2">请选择需要停止的数据导入服务：</td>
                    </tr>

                    <tr bgcolor="#C6D7EF">
                        <td align=left colspan="2">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <input type=radio checked name=dataType value=ocr id="ocr">
                            流水合成
                        </td>
                    </tr>
                    <tr bgcolor="#C6D7EF">
                        <td align=left colspan="2">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <input type=radio name=dataType value=imp id="imp">
                            监控预警
                        </td>
                    </tr>
                    <tr bgcolor="#C6D7EF" align="center">
                        <td align="center" colspan="2">警告</td>
                    </tr>
                    <tr align="center" bgcolor="#C6D7EF">
                        <td align="left" colspan="2">1、请确认程序未处于导入数据正运行或监控数据生成状态，停止定时器后，程序将停止当前正运行数据导入程序。</td>
                    </tr>
                    <tr align="center" bgcolor="#C6D7EF">
                        <td align="left" colspan="2">2、停止定时器后，程序将不能自动导入数据，导数只能手工操作。</td>
                    </tr>
                </table>
            <input type="hidden" name="msgType" value="timerend" class="form-control">
        </div>
    </div>
    <div class="form-group">
        <div class="col-md-12">
            <button type="button" class="btn btn-sm btn-primary" onclick="submitStopTimer()"><i class="fa fa-check"></i>确定</button>&nbsp;
        </div>
    </div>
</form>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        function submitStopTimer () {
            $.modal.confirm("确定停止定时器?", function() {
                $.operate.post(ctx + "data/stopTimer/stop", $('#form-startTimer').serialize(),function (action) {
                    $.modal.alert(action.msg);
                    setTimeout(function() {
                    $.modal.openTab("数据处理实时反馈", ctx + "data/feedback");
                    },2000);
                });
            })
        }
    </script>
</body>
</html>